package com.letoken.platform.repo.admin.res.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "查询管理账户返回对象", description = "查询管理账户返回对象")
public class QueryAdminAccountRes {
    @ApiModelProperty(name = "adminUserId", value = "ID")
    private Integer adminUserId;

    @ApiModelProperty(name = "name", value = "姓名")
    private String name;

    @ApiModelProperty(name = "roleId", value = "角色id")
    private String roleId;

    @ApiModelProperty(name = "username", value = "用户名")
    private String username;

    @ApiModelProperty(name = "locked", value = "账号是否锁定 0正常 1异常")
    private Integer locked;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "loginTime", value = "最后登录")
    private LocalDateTime loginTime;

    @ApiModelProperty(name = "createTime", value = "添加时间")
    private LocalDateTime createTime;
}
